package com.ysx.teacher.day20210909.ch02;

import java.util.ArrayList;

public class Ch02 {

    public static void main(String[] args) {

        Cat cat = new Cat();
        cat.setName("HelloKitty");
        cat.setColor("white");
        cat.setPrice(1000);

        // 容器= 神话故事乾坤袋=可以把任何东西都收进去
        ArrayList arrayList = new ArrayList();
        arrayList.add(10);
        arrayList.add("20");
        arrayList.add(30);
        arrayList.add(cat);

        //Cat cat2= arrayList.get(3);

    }
}
